(function(){"use strict";BX.namespace("BX.Landing.UI.Button");BX.Landing.UI.Button.CreateLink=function(t,n){BX.Landing.UI.Button.EditorAction.apply(this,arguments);this.editPanel=null};BX.Landing.UI.Button.CreateLink.prototype={constructor:BX.Landing.UI.Button.CreateLink,__proto__:BX.Landing.UI.Button.EditorAction.prototype,onClick:function(t){t.preventDefault();t.stopPropagation();this.textNode=BX.Landing.Block.Node.Text.currentNode;this.textField=BX.Landing.UI.Field.BaseField.currentField;if(!!this.textField&&this.textField.isEditable()){this.textNode=this.textField}const n=BX.Landing.UI.Panel.Link.getInstance();n.setContextDocument(this.contextDocument);n.show(this.textNode)}}})();
//# sourceMappingURL=create_link.map.js